package com.teach;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-12 14:37
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Demo05 {
  public static void main(String[] args) {
    //JDK1.5+
    boolean b1 = true;
    Boolean b2 = b1;//自动装箱  new Boolean(b1)
    boolean b3 = b2;//自动拆箱 b2.booleanValue()
    Boolean b4 = null;
    boolean b5 = b4;//NullPointerException
  }
}
